﻿using System;
using Xtensive.Orm;

namespace LazyLoad.Model
{
    [HierarchyRoot]
    public class Article : Entity
    {
        [Field, Key]
        public int Id { get; set; }

        [Field(Length = 50)]
        public string Title { get; set; }

        [Field(LazyLoad = true)]
        public string Content { get; set; }

        public Article(Session session)
            : base(session)
        {
        }
    }
}
